package sysint;

import org.apache.camel.builder.RouteBuilder;
/*
 * Gets The Weather information
 */
public class Weather {

	private String intAirportPref = null;
	
	private String WEATHER_URI = "http://weather.yahooapis.com/forecastrss?q=" + intAirportPref + "&u=c&format=json";
		 
	 /*
	  * Gets the Weather
	  */
	 public void getWeather(String intAirportPref)
	 {
		  new RouteBuilder() {			
			@Override
			public void configure() throws Exception {
				from(WEATHER_URI)
				 .to("direct:weather");				
			}
		};
		 
	 }
}
